package dao

import (
	"time"
)

// 这是 SysDictionaryDetail 的全局公开dao对象
var SysDictionaryDetailDao = sysDictionaryDetailDao{}

// 这是 sys_dictionary_detail表 的实体类
type SysDictionaryDetail struct {
	Id              int       `json:"id" form:"id" binding:"id"`
	CreatedAt       time.Time `json:"created_at" form:"created_at" binding:"created_at"`
	UpdatedAt       time.Time `json:"updated_at" form:"updated_at" binding:"updated_at"`
	DeletedAt       time.Time `json:"deleted_at" form:"deleted_at" binding:"deleted_at"`
	Label           string    `json:"label" form:"label" binding:"label"`                                     // 展示值
	Value           int       `json:"value" form:"value" binding:"value"`                                     // 字典值
	Sort            int       `json:"sort" form:"sort" binding:"sort"`                                        // 排序标记
	SysDictionaryId int       `json:"sys_dictionary_id" form:"sys_dictionary_id" binding:"sys_dictionary_id"` // 关联标记
	Status          int       `json:"status" form:"status" binding:"status"`                                  // 启用状态

}

// 注意:这是 SysDictionaryDetail 的私有dao对象
type sysDictionaryDetailDao struct {
	Obj    SysDictionaryDetail
	Insert func(arg SysDictionaryDetail) int                 //插入一条记录
	Update func(arg SysDictionaryDetail) int                 //更新一条记录
	Delete func(arg SysDictionaryDetail) int                 //删除一条记录
	Select func(arg SysDictionaryDetail) SysDictionaryDetail //获取一条记录
}
